function changeRightTopPanel(fileInfoId) {

    $.getJSON("/api/fileDetail/"+fileInfoId, function (res) {
        if (res.code == 0) {
            var $right_top_panel = $("#right_top_panel");
            var $right_top_panel_default = $("#right_top_panel_default");

            var $fileCategoryInfo = $("#fileCategoryInfo");
            var $fileCategoryIconInfo = $("#fileCategoryIconInfo");
            var $fileDescribeNameInfo = $("#fileDescribeNameInfo");

            var $fileTypeInfo = $("#fileTypeInfo");
            var $fileSizeInfo = $("#fileSizeInfo");
            var $fileUploadDateInfo = $("#fileUploadDateInfo");

            var $fileInfoIdClass = $(".fileInfoIdClass");

            var $fileURIInfo = $("#fileURIInfo");

            var $uploderInfo = $("#uploderInfo");
            var $fileDownloadTimesInfo = $("#fileDownloadTimesInfo");
            var $fileStarInfo = $("#fileStarInfo");

            var $fileDescribeInfo = $("#fileDescribeInfo");

            $fileCategoryInfo.text(res.data.fileCategoryLevel1+"·"+res.data.fileCategoryLevel2);
            $fileCategoryIconInfo.removeClass().addClass(res.data.fileCategoryIcon);
            $fileDescribeNameInfo.text(res.data.fileDescribeName);

            $fileTypeInfo.text(res.data.fileType);
            $fileSizeInfo.text(res.data.fileSize);
            $fileUploadDateInfo.text(res.data.fileUploadDate);

            $fileInfoIdClass.text(res.data.fileInfoId);
            // 加上encode表示加密过的。
            $fileURIInfo.attr('href',"encode"+res.data.fileURI);
            $fileURIInfo.attr('download',res.data.fileOriginName);

            $uploderInfo.text(res.data.userName);
            $fileDownloadTimesInfo.text(res.data.fileDownloadTimes);
            $fileStarInfo.text(res.data.fileStar);
            // 加了&emsp;就必须用html了
            $fileDescribeInfo.html("&emsp;&emsp;"+res.data.fileDescribe);

            $right_top_panel.css("display", "block");
            $right_top_panel_default.css("display", "none");
        } else if (res.code == 1) {
            toastr.warning(res.msg);
        } else {
            toastr.error(res.msg);
        }
    });

}